#!/bin/bash
if test -z "$1"
then
    echo "copies jar file from local maven repository into folder under version control"
    echo "USAGE: ./repo-install.sh VERSION"
else
    mvn install:install-file -Dfile=${HOME}/.m2/repository/com/googlecode/generics-utils/generics-utils/${1}/generics-utils-${1}.jar -DgroupId=com.googlecode.generics-utils -DartifactId=generics-utils -Dversion=${1} -Dpackaging=jar -DlocalRepositoryPath=./repo
fi